home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
setup_ut
/
ssetup24
/
choice1.fr_
/
CHOICE1.FRM
Wrap
Text File
|
1995-01-25
|
4KB
|
154 lines
VERSION 2.00
Begin Form Form3
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Choose directory..."
ClientHeight = 1365
ClientLeft = 1140
ClientTop = 1500
ClientWidth = 6270
ControlBox = 0 'False
Height = 1770
Left = 1080
LinkMode = 1 'Source
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1365
ScaleWidth = 6270
Top = 1155
Width = 6390
Begin CommandButton Commande2
Caption = "&Abort"
Height = 375
Left = 4680
TabIndex = 1
Top = 600
Width = 1455
End
Begin CommandButton Commande3
Caption = ">>"
Height = 375
Left = 4080
TabIndex = 4
Top = 600
Width = 375
End
Begin TextBox Texte1
Height = 375
Left = 120
TabIndex = 3
Top = 600
Width = 3855
End
Begin CommandButton Commande1
Caption = "OK"
Height = 375
Left = 4680
TabIndex = 0
Top = 120
Width = 1455
End
Begin Label Etiquette1
BackColor = &H00C0C0C0&
Caption = "Choose destination directory:"
Height = 375
Left = 120
TabIndex = 2
Top = 120
Width = 4335
End
End
Sub Commande1_Click ()
UserPath$ = Texte1.Text
If (UserPath$ = "") Then
Beep
If (iLanguage% = LANGUAGE_FRENCH) Then
MsgBox "Veuillez indiquer un rΘpertoire de destination!"
Else
MsgBox "Please give a destination directory!"
End If
Texte1.SetFocus
Exit Sub
End If
szTest$ = Right$(UserPath$, 1)
If (szTest$ <> "\") Then
UserPath$ = UserPath$ + "\"
End If
a% = IsFileName(UserPath$, FILENAME_DIRWITHSLASH, CHECK_ROOTDIRSEXIST)
If (a% = 0) Then
Beep
If (iLanguage% = LANGUAGE_FRENCH) Then
MsgBox "DΘsolΘ, ce rΘpertoire n' est pas valable: Veuillez indiquer un nom de rΘpertoire comme C:\ANCIEN\NOUVEAU"
Else
MsgBox "Sorry, this directory is not valid: Give a dos directory name like C:\OLDDIR\NEWDIR"
End If
Texte1.SetFocus
Exit Sub
End If
UserPath$ = UCase$(UserPath)
DirCanClose% = 1
bIsSetupOK% = 1
bUserAbort% = 0
Unload Form3
End Sub
Sub Commande2_Click ()
If (iLanguage% = LANGUAGE_FRENCH) Then
a% = MsgBox("Etes vous certain de vouloir abandonner l' installation?", 36)
Else
a% = MsgBox("Are you sure you wish to cancel this installation?", 36)
End If
If (a% = 6) Then
DirCanClose% = 1
bIsSetupOK% = 0
bUserAbort% = 1
Unload Form3
End If
End Sub
Sub Commande3_Click ()
Dim sTemp As String * 256
sTemp$ = String$(256, 0)
Mid$(sTemp$, 1, Len(Texte1.Text)) = Texte1.Text
Call SetupBrowseDir(Form3.hWnd, sTemp$)
iZero% = InStr(sTemp$, Chr$(0))
szTemp$ = Left$(sTemp$, iZero% - 1)
Texte1.Text = szTemp$
Texte1.SetFocus
Texte1.SelStart = 0
Texte1.SelLength = Len(Texte1.Text)
End Sub
Sub Form_Load ()
DirCanClose% = 1
Form3.Move (Screen.Height / 2) - (Height / 2), (Screen.Width / 2) - (Width / 2), Width, Height
If (iLanguage% = LANGUAGE_FRENCH) Then
Etiquette1.Caption = "Indiquez le rΘpertoire dans lequel vous souhaitez installer " + szProductName$
Commande2.Caption = "&Abandonner"
Else
Etiquette1.Caption = "Choose destination directory for " + szProductName$
Commande2.Caption = "&Abort"
End If
sTemp$ = szWinDir$ + szDefaultDir$
Texte1.Text = sTemp$
'Texte1.SetFocus
End Sub
Sub Texte1_Change ()
If (Len(Texte1.Text) < 3) Then
Commande1.Enabled = 0
Else
Commande1.Enabled = 1
End If
End Sub